<?php
/**
 * 首页
 * @version 1.0.0 (Thu Feb 23 13:49:18 GMT 2012)
 * @author ZhangHao
 */

class Index extends CI_Controller {
	private $_data;

    public function __construct() {
		parent::__construct();
		$this->load->model('base_mdl', 'base');
    }

	public function index() {
		echo APP_ROOT;exit;
		$this->load->view(THEME.'/mobile_header', $this->_data);
		$this->load->view(THEME.'/index', $this->_data);
		$this->load->view(THEME.'/footer');
	}

	public function getList() {
		$data = array(
			array(
				'header' => base_url('data/user/1.jpg'),
				'title'	=> '摄影师奇米',
				'description'	=> '专注于建筑，空间摄影',
				'photos'	=> array(
					base_url('data/uploads/1.jpg'),
					base_url('data/uploads/2.jpg'),
				),
				'price'	=> 2000,
				'photo'	=> 90,
				'collect'	=> 28,
				'comment'	=> 20
			),
			array(
				'header' => base_url('data/user/2.jpg'),
				'title'	=> '摄影师噜噜',
				'description'	=> '擅长人物摄影',
				'photos'	=> array(
					base_url('data/uploads/3.jpg'),
					base_url('data/uploads/2.jpg'),
				),
				'price'	=> 500,
				'photo'	=> 10,
				'collect'	=> 45,
				'comment'	=> 1
			),			
			array(
				'header' => base_url('data/user/3.jpg'),
				'title'	=> '摄影师噜噜',
				'description'	=> '擅长人物摄影',
				'photos'	=> array(
					base_url('data/uploads/3.jpg'),
					base_url('data/uploads/2.jpg'),
				),
				'price'	=> 500,
				'photo'	=> 10,
				'collect'	=> 45,
				'comment'	=> 1
			),			
			array(
				'header' => base_url('data/user/4.jpg'),
				'title'	=> '摄影师噜噜',
				'description'	=> '擅长人物摄影',
				'photos'	=> array(
					base_url('data/uploads/3.jpg'),
					base_url('data/uploads/2.jpg'),
				),
				'price'	=> 500,
				'photo'	=> 10,
				'collect'	=> 45,
				'comment'	=> 1
			),			
			array(
				'header' => base_url('data/user/5.jpg'),
				'title'	=> '摄影师噜噜',
				'description'	=> '擅长人物摄影',
				'photos'	=> array(
					base_url('data/uploads/3.jpg'),
					base_url('data/uploads/2.jpg'),
				),
				'price'	=> 500,
				'photo'	=> 10,
				'collect'	=> 45,
				'comment'	=> 1
			),
		);

		output(1, $data);
	}

}